﻿#ifndef MYPROCESS_H
#define MYPROCESS_H

#include <QObject>
#include <QProcess>

/* 打开进程用，目前在【打开贴纸】和【打印调用】方面使用 */
class MyProcess : public QProcess
{
public:
    MyProcess(QObject *parent);
    QString myprocess_msg_sucess, myprocess_msg_failed;
    void ExitMsg(QString msg_sucess, QString msg_failed=""){myprocess_msg_sucess=msg_sucess; myprocess_msg_failed=msg_failed;};

public:
    void start(const QString &program, const QStringList &arguments);
};

#endif // MYPROCESS_H
